<@master template="master/master-loan" title="角色人员添加">
<div class="detaiTab detaiTab1">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td class="bg" align="right" width="15%">员工名称:</td>
			<td><@autocomplete url="/loanrest/operator?name=" value="" hideIdName="employeeNo"/>(联想)</td>
		</tr>
	</table>
	<input name="roleId" type="hidden" value="${RoleEmployeeForm.roleId}" />
	<form action="/act/role/rest/saveOrgUserRoleByempno" method="post" class="action-ajax-form">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tbody>
					<tr id="rootTd" style="display: none;">
						<td class="bg" align="right" width="15%">总部:</td>
						<td><select id="rootId" name="rootId">
								<option value="1">总部</option>
						</select></td>
					</tr>
					<tr id="areaTd" style="display: none;">
						<td class="bg" align="right" width="15%">大区:</td>
						<td><select id="areaId" name="areaId">
								<option value="">--请选择--</option> <#list areaList as area>
								<option value="${area.orgId}">${area.orgName}</option> </#list>
						</select></td>
					</tr>
					<tr id="provinceTd" >
						<td class="bg" align="right" width="15%">省区:</td>
						<td><select id="provinceId" name="provinceId">
								<option value="">--请选择--</option> <#list orgList as org>
								<option value="${org.orgId}">${org.orgName}</option> </#list>
						</select></td>

					</tr>
					<tr id="platformTd">
						<td class="bg" align="right" width="15%">平台:</td>
						<td><select id="platformId" name="platformId"></select></td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%"></td>
						<td>
							<input type="submit" class="btn_auto_30 btn_blue" value="保存"> 
							<a class="btn_auto_30 btn_blue ml10" href="<@url value='/act/userRole/list'/>" target="_self">取消</a>
							<span style="color: red;">${massege}</span>
						</td>
					</tr>
				</tbody>
			</table>
			<input type="hidden" name="roleId" id="roleId" value="${role.id}" />  
			<input type="hidden" name="level" id="level" value="${role.roleLevel}" />  
			<input type="hidden" name="orgId" id="orgId" value="" />  
			<input type="hidden" name="userNo" id="userNo" value="" /> 
	</form>
</div>


<div class="detaiTab detaiTab1" style="margin-top:20px;">
<form action="/act/role/roleEmployee/add" method="get">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody>
				<tr>
					<td class="bg" align="right" width="15%">用户姓名:</td>
					<td><input type="text" name="userName" value="${RoleEmployeeForm.userName}"></td>
				</tr>
				<tr>
					<td class="bg" align="right" width="15%"></td>
					<td><input type="submit" class="btn_auto_30 btn_blue" value="查询"> </td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="roleId" id="roleId" value="${RoleEmployeeForm.roleId}" />  
	</form>
</div>
<div class="mt20"><@pagination paginationInfo="paginationInfo"/></div>
<@js src="/js/o2o-admin/sys/permission/addUserRole.js"/><@jsRender/>
</@master>
